package com.shine.log.info;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class RequestLogInfo {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "链路追踪ID")
    private String traceId;

    @Schema(description = "请求ip")
    private String ip;

    @Schema(description = "uri")
    private String uri;

    @Schema(description = "path")
    private String path;

    @Schema(description = "请求时间")
    private LocalDateTime requestTime;

    @Schema(description = "请求方法")
    private String requestMethod;

    @Schema(description = "请求头")
    private String requestHeaders;

    @Schema(description = "请求参数")
    private String requestParams;

    @Schema(description = "客户端ID")
    private String clientId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private Long createUser;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @Schema(description = "修改人")
    private Long updateUser;

    @Schema(description = "逻辑删除")
    private Integer deleted;

    @Schema(description = "备注")
    private String remark;

}